package map.viewmodel

import com.baidu.mapapi.map.MyLocationConfiguration
import map.ext.locationManager
import map.ext.map
import map.ext.mapManager

/**
 * @author     ：zhong.jw
 * @date       ：Created in 2022/10/24 16:26
 * @description：
 */
class MultiRouteViewModel : MapBaseViewModel() {

    override fun onPageEnter() {
        super.onPageEnter()
        locationManager().locationMode(MyLocationConfiguration.LocationMode.NORMAL)

        mapManager().hideZoomButton()

    }

    override fun onPageExit() {
        super.onPageExit()

        //清除路线
        map().clear()
    }
}